package com.atguigu.yygh.client;

import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author WGH
 */
@FeignClient(value = "service-user",path ="/api/user/patient")
@Repository
public interface PatientFeignClient {

    /**
     * 获取就诊人信息，根据id
     * @param id
     * @return
     */
    @GetMapping("/inner/get/{id}")
    public Patient getPatientById(@PathVariable("id") Long id);

}
